package cn.kgm.orderStatus.impl;

import cn.kgm.orderStatus.AstractOrderState;
import cn.kgm.orderStatus.Order;
import cn.kgm.orderStatus.OrderState;

/**
 * @Version 1.8
 * @Author: Kappi
 * @Date: 2024-2-29 16:02
 * @Description: cn.kgm.orderStatus.impl.Done
 */
public class Done extends AstractOrderState {

    public Done(Order order) {
        super(order);
    }

    @Override
    public OrderState reBuy() {
        System.out.println("当前状态：" + this.getOrder().getStatus());
        // 再次购买代码
        return new NotSubmitted(this.getOrder());
    }
}
